#ifndef FTSERVER_H
#define FTSERVER_H

#include <boost/enable_shared_from_this.hpp>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <iostream>
#include "TcpConnection.hpp"

class FtServer
{
private:
  std::string storage;
  boost::asio::ip::tcp::acceptor acceptor;

public:
  FtServer(int port, const std::string &storage, boost::asio::io_service &ios);
  ~FtServer() {}

  void start();
  void handleAccept(TcpConnection::pointer new_connection, const boost::system::error_code &error);
};

#endif
